package cn.lopr.im.api.bean;

import java.util.Date;

public class Article {

    private String id;
    private String plateId;
    private Integer publishUserId;
    private Date publishTime;
    private String title;
    private String content;
    private Integer like;
    private Integer share;
    private Integer comment;
    private Boolean isTop;
    private Integer visits;
    private Boolean state;
    private Date updateTime;
    private Boolean isDelete;

    public Article() {
    }

    public Article(Article article) {
        this.id = article.getId();
        this.plateId = article.getPlateId();
        this.publishUserId = article.getPublishUserId();
        this.publishTime = article.getPublishTime();
        this.title = article.getTitle();
        this.content = article.getContent();
        this.like = article.getLike();
        this.share = article.getShare();
        this.comment = article.getComment();
        this.isTop = article.getIsTop();
        this.visits = article.getVisits();
        this.state = article.getState();
        this.updateTime = article.getUpdateTime();
        this.isDelete = article.getIsDelete();
    }


    public String getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.id
     *
     * @param id the value for article.id
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.plate_id
     *
     * @return the value of article.plate_id
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public String getPlateId() {
        return plateId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.plate_id
     *
     * @param plateId the value for article.plate_id
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setPlateId(String plateId) {
        this.plateId = plateId == null ? null : plateId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.publish_user_id
     *
     * @return the value of article.publish_user_id
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Integer getPublishUserId() {
        return publishUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.publish_user_id
     *
     * @param publishUserId the value for article.publish_user_id
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setPublishUserId(Integer publishUserId) {
        this.publishUserId = publishUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.publish_time
     *
     * @return the value of article.publish_time
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Date getPublishTime() {
        return publishTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.publish_time
     *
     * @param publishTime the value for article.publish_time
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.title
     *
     * @return the value of article.title
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.title
     *
     * @param title the value for article.title
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.content
     *
     * @return the value of article.content
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public String getContent() {
        return content;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.content
     *
     * @param content the value for article.content
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.like
     *
     * @return the value of article.like
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Integer getLike() {
        return like;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.like
     *
     * @param like the value for article.like
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setLike(Integer like) {
        this.like = like;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.share
     *
     * @return the value of article.share
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Integer getShare() {
        return share;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.share
     *
     * @param share the value for article.share
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setShare(Integer share) {
        this.share = share;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.comment
     *
     * @return the value of article.comment
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Integer getComment() {
        return comment;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.comment
     *
     * @param comment the value for article.comment
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setComment(Integer comment) {
        this.comment = comment;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.is_top
     *
     * @return the value of article.is_top
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Boolean getIsTop() {
        return isTop;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.is_top
     *
     * @param isTop the value for article.is_top
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setIsTop(Boolean isTop) {
        this.isTop = isTop;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.visits
     *
     * @return the value of article.visits
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Integer getVisits() {
        return visits;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.visits
     *
     * @param visits the value for article.visits
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setVisits(Integer visits) {
        this.visits = visits;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.state
     *
     * @return the value of article.state
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Boolean getState() {
        return state;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.state
     *
     * @param state the value for article.state
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setState(Boolean state) {
        this.state = state;
    }


    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.is_delete
     *
     * @return the value of article.is_delete
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public Boolean getIsDelete() {
        return isDelete;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.is_delete
     *
     * @param isDelete the value for article.is_delete
     * @mbg.generated Fri May 21 18:11:01 CST 2021
     */
    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }
}